using System;
using ConfOrm.Mappers;

namespace ConfOrm.NH.CustomizersImpl
{
	public class IdBagPropertiesCustomizer<TEntity, TElement> : CollectionPropertiesCustomizer<TEntity, TElement>, IIdBagPropertiesMapper<TEntity, TElement> where TEntity : class
	{
		public IdBagPropertiesCustomizer(PropertyPath propertyPath, ICustomizersHolder customizersHolder) : base(propertyPath, customizersHolder) {}

	    public void Id(Action<ISimpleIdMapper> collectionIdMapper)
	    {
	        CustomizersHolder.AddCustomizer(PropertyPath, (IIdBagPropertiesMapper m) => m.Id(collectionIdMapper));
	    }
	}
}